<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>

</head>
<body>
    {% extends "learning_logs/base.html" %}
    {% load bootstrap3 %}


    {% block header %}
        <h2>Log in to your account.</h2>
    {% endblock header %}


    {% block content %}
{#        {% if form.errors %}#}
{#            有错误,请重新输入#}
{##}
{#        {% endif %}#}

        <form action="{% url 'users:login' %}" method="post" class="form">

            {% csrf_token %}
            {% bootstrap_form form %}
{#            {{ form.as_p }}#}

            {% buttons %}
                <button name="submit" class="btn btn-primary">log in</button>
            {% endbuttons %}

            <input type="hidden" name="next" value="{% url 'll:index' %}">
        </form>
    {% endblock %}
</body>
</html>